import turtle as t
def koch(size,n):
    if n==0:
        t.fd(size)
    else:
        # for color in["#fff","#dfd","#fad","#fdf","#eee","#ada"]:
        for angle in [0,60,-120,60]:
            t.pencolor("#4169E1")
            t.left(angle)
            koch(size/3,n-1)
def main():
    t.setup(1000,1000)
    t.penup()
    t.goto(-500,-200)
    t.pendown()
    t.pensize(3)
    koch(400,3)
    # t.right(120)
    # koch(400, 2)
    # t.right(120)
    # koch(400, 2)


    t.hideturtle()
main()
